package com.smart.seckilldemo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smart.seckilldemo.commons.vo.OrderVo;
import com.smart.seckilldemo.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 获取订单详情
     * 关联订单表 关联秒杀关系表 关联商品表
     * @param orderId 订单号
     * @return
     */
    OrderVo findOrderDetail(@Param("orderId") Long orderId);


    List<OrderVo> findOrderDetailByUserId(@Param("userId") Long userId);
}